<div class="hd-20160926">
  <div class="hd-banner-bg banner-bg1">
    <div class="hd-banenr">
      <div class="banner-text">
        Entrar <a href="#">Geekvida.es >></a>
      </div>
     <img class="" src="./images/201609292.png" style="position: absolute;top: 116px;left: 200px;">
      <div id="test20" style="position: absolute;top: 116px;left: 200px;overflow: hidden;text-align: left;">
        <img src="./images/201609291.png">
      </div>
    </div>
  </div>
  <div class="hd-main-content w1065">
   <div class="panel-layout">
      <ul>
        <li><a href="#display1">XIAOMI</a></li>
        <li><a href="#display2">Móviles vendidos</a></li>
        <li><a href="#display3">iPhone</a></li>
        <li><a href="#display4">Gadgets</a></li>
        <li><a href="#display5">Repuestos</a></li>
        <li style="background: none;"><a id="hd-scrollTop" href="#Top"></a></li>
      </ul>
    </div>

  </div>
</div>
<style>
.clear{clear: both;}
.hd-20160926{background: #fff;}
.hd-20160926 .banner-bg1{height:572px;min-width: 1103px;background: url(./images/201609091.jpg) no-repeat center;}
.hd-20160926 .hd-banenr{height: 572;position: relative;width: 1103px;margin: 0px auto;}
.hd-banenr .banner-text{position: absolute;right: 0px;font-size: 14px;width: 180px;text-align: center;border: 1px solid #dedede;background: #fff;padding: 5px;}
.hd-display-container{text-align: center;}
.hd-display-container .title{ display: flex; align-items: center; justify-content: center;}
.title .title-text {margin: 0px 20px 0px;}
.title .fireworks-small {margin: 0px 0px 0px;width:60px;}
.title .fireworks-small {-webkit-animation: big 3s 2s infinite both;animation: big 3s 2s infinite both;}
.title .fireworks-big{-webkit-animation: big 3s infinite both; animation: big 3s infinite both;}
#test20{-webkit-animation: mywave 5s infinite both;animation: mywave 5s infinite both;}
.hd-banenr .banner-text a{color:#02b717;}
.hd-display-block .display-title{text-align: left;margin-bottom: 0px;}
.hd-product-list ul li{width: 200px;background: #fff;float: left;border:1px solid #666;margin:5px;position: relative;-webkit-transition: all 0.3s ease;-moz-transition: all 0.3s ease;-ms-transition: all 0.3s ease;-o-transition: all 0.3s ease;transition: all 0.3s ease;}
.hd-product-list ul li:hover{transform: translateY(-6px);-webkit-transform: translateY(-6px);-o-transform: translateY(-6px);-ms-transform: translateY(-6px);-moz-transform: translateY(-6px);}
.hd-display-block{padding: 20px 0px 30px;}
.hd-product-list .review-wrapper p{height: 40px;width: 100%;margin: 0px;text-align: center;overflow: hidden;}
.hd-product-list .review-wrapper p a{color: #666;font-size: 14px;padding: 3px 5px;display: block;line-height: 18px;}
.lis1 img{width: 90%;margin: 10px auto 0px;}
.lis1 .price-area{margin: 5px 0px 5px;height: 52px;position: relative;}
.lis1 .old-price{font-size: 14px;text-decoration: line-through;line-height: 15px;color: #d92026;display: block;margin-bottom: 5px;}
.lis1 .current-price{font-size: 36px;font-weight: bold;color: #d92026;line-height: 30px;font-family: arial;position: absolute;width:100%;left:0px;bottom:0px;}
.hd-product-list .hd-btn-buy{font-size: 14px;color: #000;display: block;background: #ba2140;height: 45px;margin-top:15px;}
.hd-btn-buy .btn-buy-text{display: inline-block;width: 100%;background: #f7d120;margin-top: 14px;height: 18px;line-height: 15px;font-weight:bold;}
.panel-layout{width: 198px;height: 432px;position: fixed;top: 0;margin-left: 1065px;display: none;background:url(./images/201609092.jpg) no-repeat center top;}
.panel-layout ul {margin-top: 196px;}
.panel-layout ul li{list-style: none;margin: 0px auto 6px;}
.panel-layout ul li a{display: block;height: 34px;width: 100%;color: #0076d6;text-align: center;font-size: 15px;line-height: 31px;font-weight: bold;}
.panel-layout ul li.current a {color:#d92026;}
.hd-product-list .more-button {text-align: right;padding-right: 10px;}
.more-button .hd-more-button {color: #0076d6;font-size: 20px;font-weight: bold;text-decoration: underline;}
@-webkit-keyframes big {
  0% { -webkit-transform:scale(0)}
  100% { -webkit-transform:scale(1)}
}

@keyframes big {
  0% { transform:scale(0)}
  100% {transform:scale(1)}
}

@-webkit-keyframes mywave {
  0%, 100% {width:0px;}
  50% {width:700px;}
}

@keyframes mywave {
  0%, 100% {width:0px;}
  50% {width:700px;}
}     
</style>

<script type="text/javascript">
(function($){
    var str1 = '', str2 = '';
    for(var i = 0; i < 15; i++){
      str1 += `<li>
                <a href="#"><img src="./images/2016040616.jpg" alt="Blackview Ultra A6 Plus 2GB 16GB Dorado"></a>
                 <div class="review-wrapper">
                  <p><a href="#">Blackview Ultra A6 Plus 2GB 16GB Dorado</a></p>
                </div>
                <div class="price-area">
                  <a href="#">
                    <span class="old-price">199.99€</span>
                    <span class="current-price">145.99€</span>
                  </a>
                </div>
                <a href="#" class="hd-btn-buy">
                  <span class="btn-buy-text">Comprar &gt;&gt;</span>
                </a>
              </li>`;
    }
    for(var i = 0; i < 5; i++){
      str2 += `<div class="hd-display-container" id="display${i+1}">
              <h2 class="title">
                <img class="fireworks-big" src="./images/201609293.png">
                <img class="title-text" src="./images/201609295.png" alt="Xiaomi">
                <img class="fireworks-small"src="./images/201609293.png">
              </h2>
              <div class="hd-display-block">
                <div class="display">
                  <div class="hd-product-list">
                    <ul class="lis1 clearfloat">${str1}</ul>
                  </div>
                </div>
              </div>
            </div>`;
    }
    $(".hd-main-content").prepend(str2);

    var sideNav = $(".panel-layout");
    $(window).on("scroll",function(){
      var sideNavShow = 286;
      var modTop = [];
      if($(this).scrollTop()>=sideNavShow){
          sideNav.show();
        }
        else{
          sideNav.hide();
        }
      /*滚动到哪个地方，相应的对方变换样式*/
      for (var i = 0; i < $(".panel-layout ul li a").length - 1; i++) {
          modTop[i] = $($(".panel-layout ul li a").eq(i).attr("href")).offset().top-10;

          if ($(window).scrollTop() >= modTop[i]) {
            $(".panel-layout ul li").removeClass('current').eq(i).addClass('current');
          };
        };
    });
    
    sideNav.find("li").find("a").on("click",function(e){
      e.preventDefault();
      var aHash = this.hash;
      $("html,body").animate({
        scrollTop: aHash=="#Top" ? 0 : $(aHash).offset().top
      });
    });
})(jQuery); 
</script>